<script type="text/javascript">
    layui.use(['layer', 'form','upload'], function(){
        let layer = layui.layer;
        let form = layui.form;
        let upload = layui.upload;

        @component('admin.upload')
        @endcomponent

        uploadFun('cover');

        @component('admin.ajax',['call'=>'close(true)'])
        @endcomponent
    });
</script>